home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 June: Reference Library / Dev.CD Jun 94.toast / Technical Documentation / Inside Macintosh / IM—Overview / IM—Overview.rsrc / TOC#_1000 < prev   
Unknown  |  1994-04-27  |  7.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 e8 08 4f 76 65 72 76 | 69 65 77 08 43 6f 6e 74 |...Overv|iew.Cont|
|00000010| 65 6e 74 73 1d 46 69 67 | 75 72 65 73 2c 20 54 61 |ents.Fig|ures, Ta|
|00000020| 62 6c 65 73 2c 20 61 6e | 64 20 4c 69 73 74 69 6e |bles, an|d Listin|
|00000030| 67 73 0f 41 62 6f 75 74 | 20 54 68 69 73 20 42 6f |gs.About| This Bo|
|00000040| 6f 6b 16 41 62 6f 75 74 | 20 49 6e 73 69 64 65 20 |ok.About| Inside |
|00000050| 4d 61 63 69 6e 74 6f 73 | 68 18 54 68 65 20 4e 65 |Macintos|h.The Ne|
|00000060| 77 20 49 6e 73 69 64 65 | 20 4d 61 63 69 6e 74 6f |w Inside| Macinto|
|00000070| 73 68 1d 43 6f 6e 76 65 | 6e 74 69 6f 6e 73 20 55 |sh.Conve|ntions U|
|00000080| 73 65 64 20 69 6e 20 54 | 68 69 73 20 42 6f 6f 6b |sed in T|his Book|
|00000090| 0d 53 70 65 63 69 61 6c | 20 46 6f 6e 74 73 0e 54 |.Special| Fonts.T|
|000000a0| 79 70 65 73 20 6f 66 20 | 4e 6f 74 65 73 17 44 65 |ypes of |Notes.De|
|000000b0| 76 65 6c 6f 70 6d 65 6e | 74 20 45 6e 76 69 72 6f |velopmen|t Enviro|
|000000c0| 6e 6d 65 6e 74 14 46 6f | 72 20 4d 6f 72 65 20 49 |nment.Fo|r More I|
|000000d0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 0c 49 6e 74 72 6f |nformati|on.Intro|
|000000e0| 64 75 63 74 69 6f 6e 0f | 47 65 74 74 69 6e 67 20 |duction.|Getting |
|000000f0| 53 74 61 72 74 65 64 2a | 4c 69 73 74 69 6e 67 20 |Started*|Listing |
|00000100| 31 2d 31 09 41 20 73 69 | 6d 70 6c 65 20 4d 61 63 |1-1.A si|mple Mac|
|00000110| 69 6e 74 6f 73 68 20 61 | 70 70 6c 69 63 61 74 69 |intosh a|pplicati|
|00000120| 6f 6e 37 46 69 67 75 72 | 65 20 31 2d 31 09 54 68 |on7Figur|e 1-1.Th|
|00000130| 65 20 77 69 6e 64 6f 77 | 20 63 72 65 61 74 65 64 |e window| created|
|00000140| 20 62 79 20 74 68 65 20 | 73 69 6d 70 6c 65 20 61 | by the |simple a|
|00000150| 70 70 6c 69 63 61 74 69 | 6f 6e 38 50 61 72 61 6d |pplicati|on8Param|
|00000160| 65 74 65 72 73 20 70 61 | 73 73 65 64 20 74 6f 20 |eters pa|ssed to |
|00000170| 4e 65 77 57 69 6e 64 6f | 77 20 69 6e 20 4c 69 73 |NewWindo|w in Lis|
|00000180| 74 69 6e 67 20 31 2d 31 | 28 63 6f 6e 74 69 6e 75 |ting 1-1|(continu|
|00000190| 65 64 29 1d 54 68 65 20 | 4d 61 63 69 6e 74 6f 73 |ed).The |Macintos|
|000001a0| 68 20 53 79 73 74 65 6d | 20 53 6f 66 74 77 61 72 |h System| Softwar|
|000001b0| 65 2a 46 69 67 75 72 65 | 20 31 2d 32 09 4f 76 65 |e*Figure| 1-2.Ove|
|000001c0| 72 76 69 65 77 20 6f 66 | 20 74 68 65 20 73 79 73 |rview of| the sys|
|000001d0| 74 65 6d 20 73 6f 66 74 | 77 61 72 65 15 54 68 65 |tem soft|ware.The|
|000001e0| 20 4d 61 63 69 6e 74 6f | 73 68 20 54 6f 6f 6c 62 | Macinto|sh Toolb|
|000001f0| 6f 78 29 46 69 67 75 72 | 65 20 31 2d 33 09 50 61 |ox)Figur|e 1-3.Pa|
|00000200| 72 74 73 20 6f 66 20 74 | 68 65 20 4d 61 63 69 6e |rts of t|he Macin|
|00000210| 74 6f 73 68 20 54 6f 6f | 6c 62 6f 78 20 54 68 65 |tosh Too|lbox The|
|00000220| 20 4d 61 63 69 6e 74 6f | 73 68 20 54 6f 6f 6c 62 | Macinto|sh Toolb|
|00000230| 6f 78 28 63 6f 6e 74 69 | 6e 75 65 64 29 1e 54 68 |ox(conti|nued).Th|
|00000240| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 4f 70 65 72 |e Macint|osh Oper|
|00000250| 61 74 69 6e 67 20 53 79 | 73 74 65 6d 29 54 68 65 |ating Sy|stem)The|
|00000260| 20 4d 61 63 69 6e 74 6f | 73 68 20 4f 70 65 72 61 | Macinto|sh Opera|
|00000270| 74 69 6e 67 20 53 79 73 | 74 65 6d 28 63 6f 6e 74 |ting Sys|tem(cont|
|00000280| 69 6e 75 65 64 29 23 41 | 64 64 69 74 69 6f 6e 61 |inued)#A|dditiona|
|00000290| 6c 20 53 79 73 74 65 6d | 20 53 6f 66 74 77 61 72 |l System| Softwar|
|000002a0| 65 20 53 65 72 76 69 63 | 65 73 0d 54 65 78 74 20 |e Servic|es.Text |
|000002b0| 48 61 6e 64 6c 69 6e 67 | 38 46 69 67 75 72 65 20 |Handling|8Figure |
|000002c0| 31 2d 34 09 41 20 6d 75 | 6c 74 69 73 63 72 69 70 |1-4.A mu|ltiscrip|
|000002d0| 74 20 6c 69 6e 65 20 6f | 66 20 74 65 78 74 20 64 |t line o|f text d|
|000002e0| 72 61 77 6e 20 62 79 20 | 51 75 69 63 6b 44 72 61 |rawn by |QuickDra|
|000002f0| 77 50 46 69 67 75 72 65 | 20 31 2d 35 09 49 6e 70 |wPFigure| 1-5.Inp|
|00000300| 75 74 20 61 6e 64 20 63 | 6f 6e 76 65 72 73 69 6f |ut and c|onversio|
|00000310| 6e 20 6f 66 20 4a 61 70 | 61 6e 65 73 65 20 74 65 |n of Jap|anese te|
|00000320| 78 74 20 75 73 69 6e 67 | 20 74 68 65 20 54 65 78 |xt using| the Tex|
|00000330| 74 20 53 65 72 76 69 63 | 65 73 20 4d 61 6e 61 67 |t Servic|es Manag|
|00000340| 65 72 1e 49 6e 74 65 72 | 61 70 70 6c 69 63 61 74 |er.Inter|applicat|
|00000350| 69 6f 6e 20 43 6f 6d 6d | 75 6e 69 63 61 74 69 6f |ion Comm|unicatio|
|00000360| 6e 37 46 69 67 75 72 65 | 20 31 2d 36 09 53 68 61 |n7Figure| 1-6.Sha|
|00000370| 72 69 6e 67 20 64 79 6e | 61 6d 69 63 20 64 61 74 |ring dyn|amic dat|
|00000380| 61 20 77 69 74 68 20 6f | 74 68 65 72 20 61 70 70 |a with o|ther app|
|00000390| 6c 69 63 61 74 69 6f 6e | 73 31 46 69 67 75 72 65 |lication|s1Figure|
|000003a0| 20 31 2d 37 09 53 65 6e | 64 69 6e 67 20 61 6e 64 | 1-7.Sen|ding and|
|000003b0| 20 72 65 73 70 6f 6e 64 | 69 6e 67 20 74 6f 20 41 | respond|ing to A|
|000003c0| 70 70 6c 65 20 65 76 65 | 6e 74 73 09 51 75 69 63 |pple eve|nts.Quic|
|000003d0| 6b 54 69 6d 65 24 46 69 | 67 75 72 65 20 31 2d 38 |kTime$Fi|gure 1-8|
|000003e0| 09 50 6c 61 79 69 6e 67 | 20 61 20 51 75 69 63 6b |.Playing| a Quick|
|000003f0| 54 69 6d 65 20 6d 6f 76 | 69 65 16 43 6f 6d 6d 75 |Time mov|ie.Commu|
|00000400| 6e 69 63 61 74 69 6f 6e | 73 20 54 6f 6f 6c 62 6f |nication|s Toolbo|
|00000410| 78 18 53 79 73 74 65 6d | 20 53 6f 66 74 77 61 72 |x.System| Softwar|
|00000420| 65 20 52 6f 75 74 69 6e | 65 73 16 54 68 65 20 53 |e Routin|es.The S|
|00000430| 61 6d 70 6c 65 20 41 70 | 70 6c 69 63 61 74 69 6f |ample Ap|plicatio|
|00000440| 6e 28 46 69 67 75 72 65 | 20 31 2d 39 09 41 20 74 |n(Figure| 1-9.A t|
|00000450| 79 70 69 63 61 6c 20 56 | 65 6e 6e 20 64 69 61 67 |ypical V|enn diag|
|00000460| 72 61 6d 20 77 69 6e 64 | 6f 77 2e 46 69 67 75 72 |ram wind|ow.Figur|
|00000470| 65 20 31 2d 31 30 09 54 | 68 65 20 70 61 72 74 73 |e 1-10.T|he parts|
|00000480| 20 6f 66 20 61 20 56 65 | 6e 6e 20 64 69 61 67 72 | of a Ve|nn diagr|
|00000490| 61 6d 20 77 69 6e 64 6f | 77 30 46 69 67 75 72 65 |am windo|w0Figure|
|000004a0| 20 31 2d 31 31 09 41 20 | 63 6f 72 72 65 63 74 6c | 1-11.A |correctl|
|000004b0| 79 20 63 6f 6e 73 74 72 | 75 63 74 65 64 20 56 65 |y constr|ucted Ve|
|000004c0| 6e 6e 20 64 69 61 67 72 | 61 6d 19 46 69 67 75 72 |nn diagr|am.Figur|
|000004d0| 65 20 31 2d 31 32 09 54 | 68 65 20 56 65 6e 6e 20 |e 1-12.T|he Venn |
|000004e0| 6d 65 6e 75 1b 43 6f 6e | 76 65 6e 74 69 6f 6e 73 |menu.Con|ventions|
|000004f0| 20 66 6f 72 20 53 61 6d | 70 6c 65 20 43 6f 64 65 | for Sam|ple Code|
|00000500| 06 4d 65 6d 6f 72 79 0c | 41 62 6f 75 74 20 4d 65 |.Memory.|About Me|
|00000510| 6d 6f 72 79 4a 46 69 67 | 75 72 65 20 32 2d 31 09 |moryJFig|ure 2-1.|
|00000520| 4d 65 6d 6f 72 79 20 6f | 72 67 61 6e 69 7a 61 74 |Memory o|rganizat|
|00000530| 69 6f 6e 20 69 6e 20 74 | 68 65 20 63 6f 6f 70 65 |ion in t|he coope|
|00000540| 72 61 74 69 76 65 20 6d | 75 6c 74 69 74 61 73 6b |rative m|ultitask|
|00000550| 69 6e 67 20 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 0f |ing envi|ronment.|
|00000560| 54 68 65 20 53 79 73 74 | 65 6d 20 48 65 61 70 1b |The Syst|em Heap.|
|00000570| 54 68 65 20 53 79 73 74 | 65 6d 20 47 6c 6f 62 61 |The Syst|em Globa|
|00000580| 6c 20 56 61 72 69 61 62 | 6c 65 73 16 41 70 70 6c |l Variab|les.Appl|
|00000590| 69 63 61 74 69 6f 6e 20 | 50 61 72 74 69 74 69 6f |ication |Partitio|
|000005a0| 6e 73 33 46 69 67 75 72 | 65 20 32 2d 32 09 4f 72 |ns3Figur|e 2-2.Or|
|000005b0| 67 61 6e 69 7a 61 74 69 | 6f 6e 20 6f 66 20 61 6e |ganizati|on of an|
|000005c0| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 70 61 72 | applica|tion par|
|000005d0| 74 69 74 69 6f 6e 15 54 | 68 65 20 41 70 70 6c 69 |tition.T|he Appli|
|000005e0| 63 61 74 69 6f 6e 20 53 | 74 61 63 6b 20 46 69 67 |cation S|tack Fig|
|000005f0| 75 72 65 20 32 2d 33 09 | 54 68 65 20 61 70 70 6c |ure 2-3.|The appl|
|00000600| 69 63 61 74 69 6f 6e 20 | 73 74 61 63 6b 14 54 68 |ication |stack.Th|
|00000610| 65 20 41 70 70 6c 69 63 | 61 74 69 6f 6e 20 48 65 |e Applic|ation He|
|00000620| 61 70 1c 46 69 67 75 72 | 65 20 32 2d 34 09 41 20 |ap.Figur|e 2-4.A |
|00000630| 66 72 61 67 6d 65 6e 74 | 65 64 20 68 65 61 70 1b |fragment|ed heap.|
|00000640| 46 69 67 75 72 65 20 32 | 2d 35 09 41 20 63 6f 6d |Figure 2|-5.A com|
|00000650| 70 61 63 74 65 64 20 68 | 65 61 70 2d 54 68 65 20 |pacted h|eap-The |
|00000660| 41 70 70 6c 69 63 61 74 | 69 6f 6e 20 47 6c 6f 62 |Applicat|ion Glob|
|00000670| 61 6c 20 56 61 72 69 61 | 62 6c 65 73 20 61 6e 64 |al Varia|bles and|
|00000680| 20 41 35 20 57 6f 72 6c | 64 34 46 69 67 75 72 65 | A5 Worl|d4Figure|
|00000690| 20 32 2d 36 09 4f 72 67 | 61 6e 69 7a 61 74 69 6f | 2-6.Org|anizatio|
|000006a0| 6e 20 6f 66 20 61 6e 20 | 61 70 70 6c 69 63 61 74 |n of an |applicat|
|000006b0| 69 6f 6e d5 73 20 41 35 | 20 77 6f 72 6c 64 0d 4d |ion.s A5| world.M|
|000006c0| 65 6d 6f 72 79 20 42 6c | 6f 63 6b 73 15 4e 6f 6e |emory Bl|ocks.Non|
|000006d0| 72 65 6c 6f 63 61 74 61 | 62 6c 65 20 42 6c 6f 63 |relocata|ble Bloc|
|000006e0| 6b 73 2e 46 69 67 75 72 | 65 20 32 2d 37 09 41 20 |ks.Figur|e 2-7.A |
|000006f0| 70 6f 69 6e 74 65 72 20 | 74 6f 20 61 20 6e 6f 6e |pointer |to a non|
|00000700| 72 65 6c 6f 63 61 74 61 | 62 6c 65 20 62 6c 6f 63 |relocata|ble bloc|
|00000710| 6b 12 52 65 6c 6f 63 61 | 74 61 62 6c 65 20 42 6c |k.Reloca|table Bl|
|00000720| 6f 63 6b 73 2a 46 69 67 | 75 72 65 20 32 2d 38 09 |ocks*Fig|ure 2-8.|
|00000730| 41 20 68 61 6e 64 6c 65 | 20 74 6f 20 61 20 72 65 |A handle| to a re|
|00000740| 6c 6f 63 61 74 61 62 6c | 65 20 62 6c 6f 63 6b 28 |locatabl|e block(|
|00000750| 4c 6f 63 6b 69 6e 67 20 | 61 6e 64 20 55 6e 6c 6f |Locking |and Unlo|
|00000760| 63 6b 69 6e 67 20 52 65 | 6c 6f 63 61 74 61 62 6c |cking Re|locatabl|
|00000770| 65 20 42 6c 6f 63 6b 73 | 2b 50 75 72 67 69 6e 67 |e Blocks|+Purging|
|00000780| 20 61 6e 64 20 52 65 61 | 6c 6c 6f 63 61 74 69 6e | and Rea|llocatin|
|00000790| 67 20 52 65 6c 6f 63 61 | 74 61 62 6c 65 20 42 6c |g Reloca|table Bl|
|000007a0| 6f 63 6b 73 37 46 69 67 | 75 72 65 20 32 2d 39 09 |ocks7Fig|ure 2-9.|
|000007b0| 50 75 72 67 69 6e 67 20 | 61 6e 64 20 72 65 61 6c |Purging |and real|
|000007c0| 6c 6f 63 61 74 69 6e 67 | 20 61 20 72 65 6c 6f 63 |locating| a reloc|
|000007d0| 61 74 61 62 6c 65 20 62 | 6c 6f 63 6b 0a 44 61 74 |atable b|lock.Dat|
|000007e0| 61 20 54 79 70 65 73 14 | 50 6f 69 6e 74 65 72 73 |a Types.|Pointers|
|000007f0| 20 61 6e 64 20 48 61 6e | 64 6c 65 73 07 53 74 72 | and Han|dles.Str|
|00000800| 69 6e 67 73 12 50 72 6f | 63 65 64 75 72 65 20 50 |ings.Pro|cedure P|
|00000810| 6f 69 6e 74 65 72 73 0d | 54 79 70 65 20 43 6f 65 |ointers.|Type Coe|
|00000820| 72 63 69 6f 6e 09 52 65 | 73 6f 75 72 63 65 73 0f |rcion.Re|sources.|
|00000830| 41 62 6f 75 74 20 52 65 | 73 6f 75 72 63 65 73 0e |About Re|sources.|
|00000840| 52 65 73 6f 75 72 63 65 | 20 50 61 74 68 73 1e 54 |Resource| Paths.T|
|00000850| 79 70 69 63 61 6c 20 6c | 6f 63 61 74 69 6f 6e 73 |ypical l|ocations|
|00000860| 20 6f 66 20 72 65 73 6f | 75 72 63 65 73 23 46 69 | of reso|urces#Fi|
|00000870| 67 75 72 65 20 33 2d 31 | 09 53 65 61 72 63 68 69 |gure 3-1|.Searchi|
|00000880| 6e 67 20 66 6f 72 20 61 | 20 72 65 73 6f 75 72 63 |ng for a| resourc|
|00000890| 65 0e 52 65 73 6f 75 72 | 63 65 20 54 79 70 65 73 |e.Resour|ce Types|
|000008a0| 27 53 6f 6d 65 20 73 74 | 61 6e 64 61 72 64 20 72 |'Some st|andard r|
|000008b0| 65 73 6f 75 72 63 65 20 | 74 79 70 65 73 28 63 6f |esource |types(co|
|000008c0| 6e 74 69 6e 75 65 64 29 | 12 52 65 73 6f 75 72 63 |ntinued)|.Resourc|
|000008d0| 65 20 53 74 72 75 63 74 | 75 72 65 34 4c 69 73 74 |e Struct|ure4List|
|000008e0| 69 6e 67 20 33 2d 31 09 | 52 65 7a 20 69 6e 70 75 |ing 3-1.|Rez inpu|
|000008f0| 74 20 66 6f 72 20 74 68 | 65 20 50 72 65 66 65 72 |t for th|e Prefer|
|00000900| 65 6e 63 65 73 20 64 69 | 61 6c 6f 67 20 62 6f 78 |ences di|alog box|
|00000910| 3c 46 69 67 75 72 65 20 | 33 2d 32 09 54 68 65 20 |<Figure |3-2.The |
|00000920| 52 65 73 45 64 69 74 20 | 76 65 72 73 69 6f 6e 20 |ResEdit |version |
|00000930| 6f 66 20 74 68 65 20 50 | 72 65 66 65 72 65 6e 63 |of the P|referenc|
|00000940| 65 73 20 64 69 61 6c 6f | 67 20 62 6f 78 1d 46 69 |es dialo|g box.Fi|
|00000950| 67 75 72 65 20 33 2d 33 | 09 41 20 72 65 73 6f 75 |gure 3-3|.A resou|
|00000960| 72 63 65 20 64 69 61 67 | 72 61 6d 18 55 73 69 6e |rce diag|ram.Usin|
|00000970| 67 20 53 74 61 6e 64 61 | 72 64 20 52 65 73 6f 75 |g Standa|rd Resou|
|00000980| 72 63 65 73 16 55 73 69 | 6e 67 20 43 75 73 74 6f |rces.Usi|ng Custo|
|00000990| 6d 20 52 65 73 6f 75 72 | 63 65 73 25 46 69 67 75 |m Resour|ces%Figu|
|000009a0| 72 65 20 33 2d 34 09 54 | 68 65 20 50 72 65 66 65 |re 3-4.T|he Prefe|
|000009b0| 72 65 6e 63 65 73 20 64 | 69 61 6c 6f 67 20 62 6f |rences d|ialog bo|
|000009c0| 78 4b 4c 69 73 74 69 6e | 67 20 33 2d 32 09 54 68 |xKListin|g 3-2.Th|
|000009d0| 65 20 73 74 72 75 63 74 | 75 72 65 20 6f 66 20 61 |e struct|ure of a|
|000009e0| 20 72 65 73 6f 75 72 63 | 65 20 63 6f 6e 74 61 69 | resourc|e contai|
|000009f0| 6e 69 6e 67 20 56 65 6e | 6e 20 64 69 61 67 72 61 |ning Ven|n diagra|
|00000a00| 6d 20 70 72 65 66 65 72 | 65 6e 63 65 73 28 4c 69 |m prefer|ences(Li|
|00000a10| 73 74 69 6e 67 20 33 2d | 33 09 52 65 61 64 69 6e |sting 3-|3.Readin|
|00000a20| 67 20 61 20 75 73 65 72 | d5 73 20 70 72 65 66 65 |g a user|.s prefe|
|00000a30| 72 65 6e 63 65 73 27 4c | 69 73 74 69 6e 67 20 33 |rences'L|isting 3|
|00000a40| 2d 34 09 43 72 65 61 74 | 69 6e 67 20 61 20 70 72 |-4.Creat|ing a pr|
|00000a50| 65 66 65 72 65 6e 63 65 | 73 20 66 69 6c 65 40 4c |eference|s file@L|
|00000a60| 69 73 74 69 6e 67 20 33 | 2d 35 09 43 6f 70 79 69 |isting 3|-5.Copyi|
|00000a70| 6e 67 20 61 20 72 65 73 | 6f 75 72 63 65 20 66 72 |ng a res|ource fr|
|00000a80| 6f 6d 20 6f 6e 65 20 72 | 65 73 6f 75 72 63 65 20 |om one r|esource |
|00000a90| 66 69 6c 65 20 74 6f 20 | 61 6e 6f 74 68 65 72 2f |file to |another/|
|00000aa0| 4c 69 73 74 69 6e 67 20 | 33 2d 36 09 53 61 76 69 |Listing |3-6.Savi|
|00000ab0| 6e 67 20 63 75 72 72 65 | 6e 74 20 70 72 65 66 65 |ng curre|nt prefe|
|00000ac0| 72 65 6e 63 65 73 20 73 | 65 74 74 69 6e 67 73 06 |rences s|ettings.|
|00000ad0| 45 76 65 6e 74 73 0c 41 | 62 6f 75 74 20 45 76 65 |Events.A|bout Eve|
|00000ae0| 6e 74 73 35 46 69 67 75 | 72 65 20 34 2d 31 09 53 |nts5Figu|re 4-1.S|
|00000af0| 6f 75 72 63 65 73 20 6f | 66 20 65 76 65 6e 74 73 |ources o|f events|
|00000b00| 20 73 65 6e 74 20 74 6f | 20 79 6f 75 72 20 61 70 | sent to| your ap|
|00000b10| 70 6c 69 63 61 74 69 6f | 6e 1b 49 6e 69 74 69 61 |plicatio|n.Initia|
|00000b20| 6c 69 7a 69 6e 67 20 61 | 6e 20 41 70 70 6c 69 63 |lizing a|n Applic|
|00000b30| 61 74 69 6f 6e 29 4c 69 | 73 74 69 6e 67 20 34 2d |ation)Li|sting 4-|
|00000b40| 31 09 49 6e 69 74 69 61 | 6c 69 7a 69 6e 67 20 79 |1.Initia|lizing y|
|00000b50| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 32 |our appl|ication2|
|00000b60| 4c 69 73 74 69 6e 67 20 | 34 2d 32 09 49 6e 69 74 |Listing |4-2.Init|
|00000b70| 69 61 6c 69 7a 69 6e 67 | 20 74 68 65 20 6d 61 69 |ializing| the mai|
|00000b80| 6e 20 54 6f 6f 6c 62 6f | 78 20 4d 61 6e 61 67 65 |n Toolbo|x Manage|
|00000b90| 72 73 10 52 65 63 65 69 | 76 69 6e 67 20 45 76 65 |rs.Recei|ving Eve|
|00000ba0| 6e 74 73 29 4c 69 73 74 | 69 6e 67 20 34 2d 33 09 |nts)List|ing 4-3.|
|00000bb0| 48 61 6e 64 6c 69 6e 67 | 20 64 69 73 6b 2d 69 6e |Handling| disk-in|
|00000bc0| 73 65 72 74 65 64 20 65 | 76 65 6e 74 73 19 4c 69 |serted e|vents.Li|
|00000bd0| 73 74 69 6e 67 20 34 2d | 34 09 41 6e 20 65 76 65 |sting 4-|4.An eve|
|00000be0| 6e 74 20 6c 6f 6f 70 2b | 48 61 6e 64 6c 69 6e 67 |nt loop+|Handling|
|00000bf0| 20 45 76 65 6e 74 73 20 | 4f 75 74 73 69 64 65 20 | Events |Outside |
|00000c00| 74 68 65 20 4d 61 69 6e | 20 45 76 65 6e 74 20 4c |the Main| Event L|
|00000c10| 6f 6f 70 32 4c 69 73 74 | 69 6e 67 20 34 2d 35 09 |oop2List|ing 4-5.|
|00000c20| 54 72 61 63 6b 69 6e 67 | 20 6d 6f 75 73 65 20 65 |Tracking| mouse e|
|00000c30| 76 65 6e 74 73 20 69 6e | 20 74 68 65 20 63 6c 6f |vents in| the clo|
|00000c40| 73 65 20 62 6f 78 39 4c | 69 73 74 69 6e 67 20 34 |se box9L|isting 4|
|00000c50| 2d 36 09 54 72 61 63 6b | 69 6e 67 20 74 68 65 20 |-6.Track|ing the |
|00000c60| 63 75 72 73 6f 72 20 69 | 6e 20 61 6e 20 61 72 62 |cursor i|n an arb|
|00000c70| 69 74 72 61 72 79 20 72 | 65 63 74 61 6e 67 6c 65 |itrary r|ectangle|
|00000c80| 07 44 72 61 77 69 6e 67 | 0f 41 62 6f 75 74 20 51 |.Drawing|.About Q|
|00000c90| 75 69 63 6b 44 72 61 77 | 2b 46 69 67 75 72 65 20 |uickDraw|+Figure |
|00000ca0| 35 2d 31 09 53 61 6d 70 | 6c 65 73 20 6f 66 20 51 |5-1.Samp|les of Q|
|00000cb0| 75 69 63 6b 44 72 61 77 | d5 73 20 61 62 69 6c 69 |uickDraw|.s abili|
|00000cc0| 74 69 65 73 06 50 6f 69 | 6e 74 73 1f 46 69 67 75 |ties.Poi|nts.Figu|
|00000cd0| 72 65 20 35 2d 32 09 54 | 68 65 20 63 6f 6f 72 64 |re 5-2.T|he coord|
|00000ce0| 69 6e 61 74 65 20 70 6c | 61 6e 65 0a 52 65 63 74 |inate pl|ane.Rect|
|00000cf0| 61 6e 67 6c 65 73 16 46 | 69 67 75 72 65 20 35 2d |angles.F|igure 5-|
|00000d00| 33 09 41 20 72 65 63 74 | 61 6e 67 6c 65 20 46 69 |3.A rect|angle Fi|
|00000d10| 67 75 72 65 20 35 2d 34 | 09 50 69 78 65 6c 73 20 |gure 5-4|.Pixels |
|00000d20| 61 6e 64 20 72 65 63 74 | 61 6e 67 6c 65 73 07 52 |and rect|angles.R|
|00000d30| 65 67 69 6f 6e 73 16 46 | 69 67 75 72 65 20 35 2d |egions.F|igure 5-|
|00000d40| 35 09 54 77 6f 20 72 65 | 67 69 6f 6e 73 0a 42 69 |5.Two re|gions.Bi|
|00000d50| 74 20 49 6d 61 67 65 73 | 13 46 69 67 75 72 65 20 |t Images|.Figure |
|00000d60| 35 2d 36 09 41 20 62 69 | 74 6d 61 70 11 50 6f 72 |5-6.A bi|tmap.Por|
|00000d70| 74 73 20 61 6e 64 20 57 | 69 6e 64 6f 77 73 3a 4c |ts and W|indows:L|
|00000d80| 69 73 74 69 6e 67 20 35 | 2d 31 09 53 61 76 69 6e |isting 5|-1.Savin|
|00000d90| 67 20 61 6e 64 20 72 65 | 73 74 6f 72 69 6e 67 20 |g and re|storing |
|00000da0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 67 72 61 70 |the curr|ent grap|
|00000db0| 68 69 63 73 20 70 6f 72 | 74 0e 44 72 61 77 69 6e |hics por|t.Drawin|
|00000dc0| 67 20 53 68 61 70 65 73 | 4d 4c 69 73 74 69 6e 67 |g Shapes|MListing|
|00000dd0| 20 35 2d 32 09 54 68 65 | 20 73 74 72 75 63 74 75 | 5-2.The| structu|
|00000de0| 72 65 20 6f 66 20 61 20 | 72 65 63 6f 72 64 20 64 |re of a |record d|
|00000df0| 65 73 63 72 69 62 69 6e | 67 20 61 20 64 6f 63 75 |escribin|g a docu|
|00000e00| 6d 65 6e 74 20 77 69 6e | 64 6f 77 d5 73 20 67 65 |ment win|dow.s ge|
|00000e10| 6f 6d 65 74 72 79 2c 4c | 69 73 74 69 6e 67 20 35 |ometry,L|isting 5|
|00000e20| 2d 33 09 49 6e 69 74 69 | 61 6c 69 7a 69 6e 67 20 |-3.Initi|alizing |
|00000e30| 74 68 65 20 67 65 6f 6d | 65 74 72 79 20 72 65 63 |the geom|etry rec|
|00000e40| 6f 72 64 25 4c 69 73 74 | 69 6e 67 20 35 2d 34 09 |ord%List|ing 5-4.|
|00000e50| 44 65 66 69 6e 69 6e 67 | 20 63 69 72 63 75 6c 61 |Defining| circula|
|00000e60| 72 20 72 65 67 69 6f 6e | 73 28 4c 69 73 74 69 6e |r region|s(Listin|
|00000e70| 67 20 35 2d 35 09 44 65 | 66 69 6e 69 6e 67 20 6e |g 5-5.De|fining n|
|00000e80| 6f 6e 63 69 72 63 75 6c | 61 72 20 72 65 67 69 6f |oncircul|ar regio|
|00000e90| 6e 73 3c 46 69 67 75 72 | 65 20 35 2d 37 09 43 61 |ns<Figur|e 5-7.Ca|
|00000ea0| 6c 63 75 6c 61 74 69 6e | 67 20 74 68 65 20 6f 76 |lculatin|g the ov|
|00000eb0| 65 72 6c 61 70 20 72 65 | 67 69 6f 6e 73 20 6f 66 |erlap re|gions of|
|00000ec0| 20 61 20 56 65 6e 6e 20 | 64 69 61 67 72 61 6d 12 | a Venn |diagram.|
|00000ed0| 44 72 61 77 69 6e 67 20 | 42 69 74 20 49 6d 61 67 |Drawing |Bit Imag|
|00000ee0| 65 73 2a 46 69 67 75 72 | 65 20 35 2d 38 09 42 69 |es*Figur|e 5-8.Bi|
|00000ef0| 74 20 69 6d 61 67 65 73 | 20 69 6e 20 61 20 64 6f |t images| in a do|
|00000f00| 63 75 6d 65 6e 74 20 77 | 69 6e 64 6f 77 30 4c 69 |cument w|indow0Li|
|00000f10| 73 74 69 6e 67 20 35 2d | 36 09 52 65 61 64 69 6e |sting 5-|6.Readin|
|00000f20| 67 20 27 49 43 4f 4e 27 | 20 72 65 73 6f 75 72 63 |g 'ICON'| resourc|
|00000f30| 65 73 20 69 6e 74 6f 20 | 6d 65 6d 6f 72 79 37 4c |es into |memory7L|
|00000f40| 69 73 74 69 6e 67 20 35 | 2d 37 09 44 72 61 77 69 |isting 5|-7.Drawi|
|00000f50| 6e 67 20 74 68 65 20 74 | 6f 6f 6c 73 20 61 72 65 |ng the t|ools are|
|00000f60| 61 20 6f 66 20 61 20 64 | 6f 63 75 6d 65 6e 74 20 |a of a d|ocument |
|00000f70| 77 69 6e 64 6f 77 28 4c | 69 73 74 69 6e 67 20 35 |window(L|isting 5|
|00000f80| 2d 38 09 44 72 61 77 69 | 6e 67 20 61 20 70 6f 72 |-8.Drawi|ng a por|
|00000f90| 74 69 6f 6e 20 6f 66 20 | 61 6e 20 69 63 6f 6e 0c |tion of |an icon.|
|00000fa0| 44 72 61 77 69 6e 67 20 | 54 65 78 74 37 4c 69 73 |Drawing |Text7Lis|
|00000fb0| 74 69 6e 67 20 35 2d 39 | 09 52 65 74 72 69 65 76 |ting 5-9|.Retriev|
|00000fc0| 69 6e 67 20 61 20 73 74 | 61 74 75 73 20 6d 65 73 |ing a st|atus mes|
|00000fd0| 73 61 67 65 20 66 72 6f | 6d 20 61 20 72 65 73 6f |sage fro|m a reso|
|00000fe0| 75 72 63 65 47 4c 69 73 | 74 69 6e 67 20 35 2d 31 |urceGLis|ting 5-1|
|00000ff0| 30 09 49 6e 66 6f 72 6d | 69 6e 67 20 74 68 65 20 |0.Inform|ing the |
|00001000| 75 73 65 72 20 6f 66 20 | 61 6e 20 61 72 67 75 6d |user of |an argum|
|00001010| 65 6e 74 d5 73 20 76 61 | 6c 69 64 69 74 79 20 6f |ent.s va|lidity o|
|00001020| 72 20 69 6e 76 61 6c 69 | 64 69 74 79 28 4c 69 73 |r invali|dity(Lis|
|00001030| 74 69 6e 67 20 35 2d 31 | 31 09 44 69 73 70 6c 61 |ting 5-1|1.Displa|
|00001040| 79 69 6e 67 20 61 20 73 | 74 61 74 75 73 20 6d 65 |ying a s|tatus me|
|00001050| 73 73 61 67 65 07 57 69 | 6e 64 6f 77 73 0d 41 62 |ssage.Wi|ndows.Ab|
|00001060| 6f 75 74 20 57 69 6e 64 | 6f 77 73 0c 57 69 6e 64 |out Wind|ows.Wind|
|00001070| 6f 77 20 50 61 72 74 73 | 20 46 69 67 75 72 65 20 |ow Parts| Figure |
|00001080| 36 2d 31 09 41 20 56 65 | 6e 6e 20 64 69 61 67 72 |6-1.A Ve|nn diagr|
|00001090| 61 6d 20 77 69 6e 64 6f | 77 0e 57 69 6e 64 6f 77 |am windo|w.Window|
|000010a0| 20 52 65 63 6f 72 64 73 | 2b 4c 69 73 74 69 6e 67 | Records|+Listing|
|000010b0| 20 36 2d 31 09 54 68 65 | 20 57 69 6e 64 6f 77 52 | 6-1.The| WindowR|
|000010c0| 65 63 6f 72 64 20 64 61 | 74 61 20 73 74 72 75 63 |ecord da|ta struc|
|000010d0| 74 75 72 65 0c 57 69 6e | 64 6f 77 20 54 79 70 65 |ture.Win|dow Type|
|000010e0| 73 38 4c 69 73 74 69 6e | 67 20 36 2d 32 09 44 65 |s8Listin|g 6-2.De|
|000010f0| 74 65 72 6d 69 6e 69 6e | 67 20 69 66 20 61 20 77 |terminin|g if a w|
|00001100| 69 6e 64 6f 77 20 69 73 | 20 61 20 64 6f 63 75 6d |indow is| a docum|
|00001110| 65 6e 74 20 77 69 6e 64 | 6f 77 33 4c 69 73 74 69 |ent wind|ow3Listi|
|00001120| 6e 67 20 36 2d 33 09 44 | 65 74 65 72 6d 69 6e 69 |ng 6-3.D|etermini|
|00001130| 6e 67 20 69 66 20 61 20 | 77 69 6e 64 6f 77 20 69 |ng if a |window i|
|00001140| 73 20 61 20 64 69 61 6c | 6f 67 20 62 6f 78 3e 4c |s a dial|og box>L|
|00001150| 69 73 74 69 6e 67 20 36 | 2d 34 09 44 65 74 65 72 |isting 6|-4.Deter|
|00001160| 6d 69 6e 69 6e 67 20 69 | 66 20 61 20 77 69 6e 64 |mining i|f a wind|
|00001170| 6f 77 20 69 73 20 61 20 | 64 65 73 6b 20 61 63 63 |ow is a |desk acc|
|00001180| 65 73 73 6f 72 79 20 77 | 69 6e 64 6f 77 10 43 72 |essory w|indow.Cr|
|00001190| 65 61 74 69 6e 67 20 57 | 69 6e 64 6f 77 73 52 4c |eating W|indowsRL|
|000011a0| 69 73 74 69 6e 67 20 36 | 2d 35 09 54 68 65 20 73 |isting 6|-5.The s|
|000011b0| 74 72 75 63 74 75 72 65 | 20 6f 66 20 61 20 64 6f |tructure| of a do|
|000011c0| 63 75 6d 65 6e 74 20 72 | 65 63 6f 72 64 20 66 6f |cument r|ecord fo|
|000011d0| 72 20 74 68 65 20 56 65 | 6e 6e 20 44 69 61 67 72 |r the Ve|nn Diagr|
|000011e0| 61 6d 6d 65 72 20 61 70 | 70 6c 69 63 61 74 69 6f |ammer ap|plicatio|
|000011f0| 6e 2e 4c 69 73 74 69 6e | 67 20 36 2d 36 09 43 72 |n.Listin|g 6-6.Cr|
|00001200| 65 61 74 69 6e 67 20 61 | 20 6e 65 77 20 56 65 6e |eating a| new Ven|
|00001210| 6e 20 64 69 61 67 72 61 | 6d 20 77 69 6e 64 6f 77 |n diagra|m window|
|00001220| 16 48 61 6e 64 6c 69 6e | 67 20 57 69 6e 64 6f 77 |.Handlin|g Window|
|00001230| 20 45 76 65 6e 74 73 0c | 4d 6f 75 73 65 20 45 76 | Events.|Mouse Ev|
|00001240| 65 6e 74 73 26 4c 69 73 | 74 69 6e 67 20 36 2d 37 |ents&Lis|ting 6-7|
|00001250| 09 48 61 6e 64 6c 69 6e | 67 20 6d 6f 75 73 65 2d |.Handlin|g mouse-|
|00001260| 64 6f 77 6e 20 65 76 65 | 6e 74 73 1d 4c 69 73 74 |down eve|nts.List|
|00001270| 69 6e 67 20 36 2d 38 09 | 44 72 61 67 67 69 6e 67 |ing 6-8.|Dragging|
|00001280| 20 61 20 77 69 6e 64 6f | 77 38 4c 69 73 74 69 6e | a windo|w8Listin|
|00001290| 67 20 36 2d 39 09 48 61 | 6e 64 6c 69 6e 67 20 63 |g 6-9.Ha|ndling c|
|000012a0| 6c 69 63 6b 73 20 69 6e | 20 61 20 77 69 6e 64 6f |licks in| a windo|
|000012b0| 77 d5 73 20 63 6f 6e 74 | 65 6e 74 20 72 65 67 69 |w.s cont|ent regi|
|000012c0| 6f 6e 0d 55 70 64 61 74 | 65 20 45 76 65 6e 74 73 |on.Updat|e Events|
|000012d0| 2e 4c 69 73 74 69 6e 67 | 20 36 2d 31 30 09 48 61 |.Listing| 6-10.Ha|
|000012e0| 6e 64 6c 69 6e 67 20 61 | 20 63 6c 69 63 6b 20 69 |ndling a| click i|
|000012f0| 6e 20 61 20 66 69 67 75 | 72 65 20 69 63 6f 6e 23 |n a figu|re icon#|
|00001300| 4c 69 73 74 69 6e 67 20 | 36 2d 31 31 09 48 61 6e |Listing |6-11.Han|
|00001310| 64 6c 69 6e 67 20 75 70 | 64 61 74 65 20 65 76 65 |dling up|date eve|
|00001320| 6e 74 73 0f 41 63 74 69 | 76 61 74 65 20 45 76 65 |nts.Acti|vate Eve|
|00001330| 6e 74 73 3a 4c 69 73 74 | 69 6e 67 20 36 2d 31 32 |nts:List|ing 6-12|
|00001340| 09 48 61 6e 64 6c 69 6e | 67 20 77 69 6e 64 6f 77 |.Handlin|g window|
|00001350| 20 61 63 74 69 76 61 74 | 69 6f 6e 73 20 61 6e 64 | activat|ions and|
|00001360| 20 64 65 61 63 74 69 76 | 61 74 69 6f 6e 73 31 46 | deactiv|ations1F|
|00001370| 69 67 75 72 65 20 36 2d | 32 09 41 6e 20 69 6e 61 |igure 6-|2.An ina|
|00001380| 63 74 69 76 65 20 77 69 | 6e 64 6f 77 20 63 6f 6e |ctive wi|ndow con|
|00001390| 74 61 69 6e 69 6e 67 20 | 63 6f 6e 74 72 6f 6c 73 |taining |controls|
|000013a0| 0f 43 6c 6f 73 69 6e 67 | 20 57 69 6e 64 6f 77 73 |.Closing| Windows|
|000013b0| 2d 4c 69 73 74 69 6e 67 | 20 36 2d 31 33 09 48 61 |-Listing| 6-13.Ha|
|000013c0| 6e 64 6c 69 6e 67 20 63 | 6c 69 63 6b 73 20 69 6e |ndling c|licks in|
|000013d0| 20 74 68 65 20 63 6c 6f | 73 65 20 62 6f 78 1d 4c | the clo|se box.L|
|000013e0| 69 73 74 69 6e 67 20 36 | 2d 31 34 09 43 6c 6f 73 |isting 6|-14.Clos|
|000013f0| 69 6e 67 20 61 20 77 69 | 6e 64 6f 77 2a 4c 69 73 |ing a wi|ndow*Lis|
|00001400| 74 69 6e 67 20 36 2d 31 | 35 09 43 6c 6f 73 69 6e |ting 6-1|5.Closin|
|00001410| 67 20 61 20 56 65 6e 6e | 20 64 69 61 67 72 61 6d |g a Venn| diagram|
|00001420| 20 77 69 6e 64 6f 77 0c | 44 69 61 6c 6f 67 20 42 | window.|Dialog B|
|00001430| 6f 78 65 73 12 41 62 6f | 75 74 20 44 69 61 6c 6f |oxes.Abo|ut Dialo|
|00001440| 67 20 42 6f 78 65 73 17 | 46 69 67 75 72 65 20 37 |g Boxes.|Figure 7|
|00001450| 2d 31 09 41 6e 20 41 62 | 6f 75 74 20 62 6f 78 17 |-1.An Ab|out box.|
|00001460| 46 69 67 75 72 65 20 37 | 2d 32 09 41 6e 20 61 6c |Figure 7|-2.An al|
|00001470| 65 72 74 20 62 6f 78 23 | 46 69 67 75 72 65 20 37 |ert box#|Figure 7|
|00001480| 2d 33 09 41 20 50 72 65 | 66 65 72 65 6e 63 65 73 |-3.A Pre|ferences|
|00001490| 20 64 69 61 6c 6f 67 20 | 62 6f 78 1f 4c 69 73 74 | dialog |box.List|
|000014a0| 69 6e 67 20 37 2d 31 09 | 44 69 61 6c 6f 67 20 69 |ing 7-1.|Dialog i|
|000014b0| 74 65 6d 20 6e 75 6d 62 | 65 72 73 1b 55 73 69 6e |tem numb|ers.Usin|
|000014c0| 67 20 4d 6f 64 65 6c 65 | 73 73 20 44 69 61 6c 6f |g Modele|ss Dialo|
|000014d0| 67 20 42 6f 78 65 73 1e | 43 72 65 61 74 69 6e 67 |g Boxes.|Creating|
|000014e0| 20 61 20 4d 6f 64 65 6c | 65 73 73 20 44 69 61 6c | a Model|ess Dial|
|000014f0| 6f 67 20 42 6f 78 2a 4c | 69 73 74 69 6e 67 20 37 |og Box*L|isting 7|
|00001500| 2d 32 09 43 72 65 61 74 | 69 6e 67 20 61 20 6d 6f |-2.Creat|ing a mo|
|00001510| 64 65 6c 65 73 73 20 64 | 69 61 6c 6f 67 20 62 6f |deless d|ialog bo|
|00001520| 78 24 53 65 74 74 69 6e | 67 20 55 70 20 41 70 70 |x$Settin|g Up App|
|00001530| 6c 69 63 61 74 69 6f 6e | 2d 44 65 66 69 6e 65 64 |lication|-Defined|
|00001540| 20 49 74 65 6d 73 37 4c | 69 73 74 69 6e 67 20 37 | Items7L|isting 7|
|00001550| 2d 33 09 53 65 74 74 69 | 6e 67 20 75 70 20 61 70 |-3.Setti|ng up ap|
|00001560| 70 6c 69 63 61 74 69 6f | 6e 2d 64 65 66 69 6e 65 |plicatio|n-define|
|00001570| 64 20 64 69 61 6c 6f 67 | 20 69 74 65 6d 73 34 4c |d dialog| items4L|
|00001580| 69 73 74 69 6e 67 20 37 | 2d 34 09 44 72 61 77 69 |isting 7|-4.Drawi|
|00001590| 6e 67 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 2d 64 |ng appli|cation-d|
|000015a0| 65 66 69 6e 65 64 20 64 | 69 61 6c 6f 67 20 69 74 |efined d|ialog it|
|000015b0| 65 6d 73 2e 48 61 6e 64 | 6c 69 6e 67 20 55 73 65 |ems.Hand|ling Use|
|000015c0| 72 20 41 63 74 69 6f 6e | 73 20 69 6e 20 61 20 4d |r Action|s in a M|
|000015d0| 6f 64 65 6c 65 73 73 20 | 44 69 61 6c 6f 67 20 42 |odeless |Dialog B|
|000015e0| 6f 78 34 4c 69 73 74 69 | 6e 67 20 37 2d 35 09 48 |ox4Listi|ng 7-5.H|
|000015f0| 61 6e 64 6c 69 6e 67 20 | 65 76 65 6e 74 73 20 69 |andling |events i|
|00001600| 6e 20 61 20 6d 6f 64 65 | 6c 65 73 73 20 64 69 61 |n a mode|less dia|
|00001610| 6c 6f 67 20 62 6f 78 3d | 4c 69 73 74 69 6e 67 20 |log box=|Listing |
|00001620| 37 2d 36 09 53 65 74 74 | 69 6e 67 20 74 68 65 20 |7-6.Sett|ing the |
|00001630| 73 74 61 74 65 20 6f 66 | 20 72 61 64 69 6f 20 62 |state of| radio b|
|00001640| 75 74 74 6f 6e 73 20 61 | 6e 64 20 63 68 65 63 6b |uttons a|nd check|
|00001650| 62 6f 78 65 73 18 55 73 | 69 6e 67 20 4d 6f 64 61 |boxes.Us|ing Moda|
|00001660| 6c 20 44 69 61 6c 6f 67 | 20 42 6f 78 65 73 1d 44 |l Dialog| Boxes.D|
|00001670| 69 73 70 6c 61 79 69 6e | 67 20 61 20 4d 6f 64 61 |isplayin|g a Moda|
|00001680| 6c 20 44 69 61 6c 6f 67 | 20 42 6f 78 29 4c 69 73 |l Dialog| Box)Lis|
|00001690| 74 69 6e 67 20 37 2d 37 | 09 44 69 73 70 6c 61 79 |ting 7-7|.Display|
|000016a0| 69 6e 67 20 61 20 6d 6f | 64 61 6c 20 64 69 61 6c |ing a mo|dal dial|
|000016b0| 6f 67 20 62 6f 78 3e 4c | 69 73 74 69 6e 67 20 37 |og box>L|isting 7|
|000016c0| 2d 38 09 4f 75 74 6c 69 | 6e 69 6e 67 20 74 68 65 |-8.Outli|ning the|
|000016d0| 20 64 65 66 61 75 6c 74 | 20 62 75 74 74 6f 6e 20 | default| button |
|000016e0| 6f 66 20 61 20 6d 6f 64 | 61 6c 20 64 69 61 6c 6f |of a mod|al dialo|
|000016f0| 67 20 62 6f 78 27 44 65 | 66 69 6e 69 6e 67 20 61 |g box'De|fining a|
|00001700| 20 4d 6f 64 61 6c 20 44 | 69 61 6c 6f 67 20 46 69 | Modal D|ialog Fi|
|00001710| 6c 74 65 72 20 46 75 6e | 63 74 69 6f 6e 2a 4c 69 |lter Fun|ction*Li|
|00001720| 73 74 69 6e 67 20 37 2d | 39 09 41 20 6d 6f 64 61 |sting 7-|9.A moda|
|00001730| 6c 20 64 69 61 6c 6f 67 | 20 66 69 6c 74 65 72 20 |l dialog| filter |
|00001740| 66 75 6e 63 74 69 6f 6e | 05 4d 65 6e 75 73 0b 41 |function|.Menus.A|
|00001750| 62 6f 75 74 20 4d 65 6e | 75 73 23 46 69 67 75 72 |bout Men|us#Figur|
|00001760| 65 20 38 2d 31 09 41 20 | 74 79 70 69 63 61 6c 20 |e 8-1.A |typical |
|00001770| 70 75 6c 6c 2d 64 6f 77 | 6e 20 6d 65 6e 75 0e 43 |pull-dow|n menu.C|
|00001780| 72 65 61 74 69 6e 67 20 | 4d 65 6e 75 73 18 43 72 |reating |Menus.Cr|
|00001790| 65 61 74 69 6e 67 20 61 | 20 4d 65 6e 75 20 52 65 |eating a| Menu Re|
|000017a0| 73 6f 75 72 63 65 25 46 | 69 67 75 72 65 20 38 2d |source%F|igure 8-|
|000017b0| 32 09 44 65 66 69 6e 69 | 6e 67 20 61 20 27 4d 45 |2.Defini|ng a 'ME|
|000017c0| 4e 55 27 20 72 65 73 6f | 75 72 63 65 21 46 69 67 |NU' reso|urce!Fig|
|000017d0| 75 72 65 20 38 2d 33 09 | 45 64 69 74 69 6e 67 20 |ure 8-3.|Editing |
|000017e0| 61 20 6d 65 6e 75 20 63 | 6f 6d 6d 61 6e 64 1c 43 |a menu c|ommand.C|
|000017f0| 72 65 61 74 69 6e 67 20 | 61 20 4d 65 6e 75 20 42 |reating |a Menu B|
|00001800| 61 72 20 52 65 73 6f 75 | 72 63 65 28 46 69 67 75 |ar Resou|rce(Figu|
|00001810| 72 65 20 38 2d 34 09 41 | 6e 20 27 4d 42 41 52 27 |re 8-4.A|n 'MBAR'|
|00001820| 20 72 65 73 6f 75 72 63 | 65 20 69 6e 20 52 65 73 | resourc|e in Res|
|00001830| 45 64 69 74 21 53 65 74 | 74 69 6e 67 20 55 70 20 |Edit!Set|ting Up |
|00001840| 74 68 65 20 4d 65 6e 75 | 20 42 61 72 20 61 6e 64 |the Menu| Bar and|
|00001850| 20 4d 65 6e 75 73 2d 4c | 69 73 74 69 6e 67 20 38 | Menus-L|isting 8|
|00001860| 2d 31 09 53 65 74 74 69 | 6e 67 20 75 70 20 74 68 |-1.Setti|ng up th|
|00001870| 65 20 6d 65 6e 75 20 62 | 61 72 20 61 6e 64 20 6d |e menu b|ar and m|
|00001880| 65 6e 75 73 15 48 61 6e | 64 6c 69 6e 67 20 4d 65 |enus.Han|dling Me|
|00001890| 6e 75 20 43 68 6f 69 63 | 65 73 37 4c 69 73 74 69 |nu Choic|es7Listi|
|000018a0| 6e 67 20 38 2d 32 09 44 | 65 66 69 6e 69 6e 67 20 |ng 8-2.D|efining |
|000018b0| 6d 65 6e 75 20 6e 75 6d | 62 65 72 73 20 61 6e 64 |menu num|bers and|
|000018c0| 20 6d 65 6e 75 20 69 74 | 65 6d 20 6e 75 6d 62 65 | menu it|em numbe|
|000018d0| 72 73 24 4c 69 73 74 69 | 6e 67 20 38 2d 33 09 48 |rs$Listi|ng 8-3.H|
|000018e0| 61 6e 64 6c 69 6e 67 20 | 6d 65 6e 75 20 73 65 6c |andling |menu sel|
|000018f0| 65 63 74 69 6f 6e 73 2a | 4c 69 73 74 69 6e 67 20 |ections*|Listing |
|00001900| 38 2d 34 09 48 61 6e 64 | 6c 69 6e 67 20 41 70 70 |8-4.Hand|ling App|
|00001910| 6c 65 20 6d 65 6e 75 20 | 73 65 6c 65 63 74 69 6f |le menu |selectio|
|00001920| 6e 73 1d 48 61 6e 64 6c | 69 6e 67 20 4b 65 79 62 |ns.Handl|ing Keyb|
|00001930| 6f 61 72 64 20 45 71 75 | 69 76 61 6c 65 6e 74 73 |oard Equ|ivalents|
|00001940| 2c 4c 69 73 74 69 6e 67 | 20 38 2d 35 09 48 61 6e |,Listing| 8-5.Han|
|00001950| 64 6c 69 6e 67 20 43 6f | 6d 6d 61 6e 64 2d 6b 65 |dling Co|mmand-ke|
|00001960| 79 20 65 71 75 69 76 61 | 6c 65 6e 74 73 27 54 61 |y equiva|lents'Ta|
|00001970| 62 6c 65 20 38 2d 31 09 | 52 65 73 65 72 76 65 64 |ble 8-1.|Reserved|
|00001980| 20 6b 65 79 62 6f 61 72 | 64 20 65 71 75 69 76 61 | keyboar|d equiva|
|00001990| 6c 65 6e 74 73 0f 41 64 | 6a 75 73 74 69 6e 67 20 |lents.Ad|justing |
|000019a0| 4d 65 6e 75 73 1b 4c 69 | 73 74 69 6e 67 20 38 2d |Menus.Li|sting 8-|
|000019b0| 36 09 41 64 6a 75 73 74 | 69 6e 67 20 6d 65 6e 75 |6.Adjust|ing menu|
|000019c0| 73 09 50 72 6f 63 65 73 | 73 65 73 0f 41 62 6f 75 |s.Proces|ses.Abou|
|000019d0| 74 20 50 72 6f 63 65 73 | 73 65 73 35 46 69 67 75 |t Proces|ses5Figu|
|000019e0| 72 65 20 39 2d 31 09 54 | 68 65 20 64 65 73 6b 74 |re 9-1.T|he deskt|
|000019f0| 6f 70 20 77 69 74 68 20 | 73 65 76 65 72 61 6c 20 |op with |several |
|00001a00| 61 70 70 6c 69 63 61 74 | 69 6f 6e 73 20 6f 70 65 |applicat|ions ope|
|00001a10| 6e 1d 53 70 65 63 69 66 | 79 69 6e 67 20 50 72 6f |n.Specif|ying Pro|
|00001a20| 63 65 73 73 69 6e 67 20 | 4f 70 74 69 6f 6e 73 37 |cessing |Options7|
|00001a30| 4c 69 73 74 69 6e 67 20 | 39 2d 31 09 54 68 65 20 |Listing |9-1.The |
|00001a40| 52 65 7a 20 69 6e 70 75 | 74 20 66 6f 72 20 61 20 |Rez inpu|t for a |
|00001a50| 73 61 6d 70 6c 65 20 27 | 53 49 5a 45 27 20 72 65 |sample '|SIZE' re|
|00001a60| 73 6f 75 72 63 65 20 22 | 48 61 6e 64 6c 69 6e 67 |source "|Handling|
|00001a70| 20 53 75 73 70 65 6e 64 | 20 61 6e 64 20 52 65 73 | Suspend| and Res|
|00001a80| 75 6d 65 20 45 76 65 6e | 74 73 2c 4c 69 73 74 69 |ume Even|ts,Listi|
|00001a90| 6e 67 20 39 2d 32 09 48 | 61 6e 64 6c 69 6e 67 20 |ng 9-2.H|andling |
|00001aa0| 6f 70 65 72 61 74 69 6e | 67 2d 73 79 73 74 65 6d |operatin|g-system|
|00001ab0| 20 65 76 65 6e 74 73 41 | 54 68 65 20 62 69 74 73 | eventsA|The bits|
|00001ac0| 20 69 6e 20 74 68 65 20 | 6d 65 73 73 61 67 65 20 | in the |message |
|00001ad0| 66 69 65 6c 64 20 6f 66 | 20 61 6e 20 6f 70 65 72 |field of| an oper|
|00001ae0| 61 74 69 6e 67 2d 73 79 | 73 74 65 6d 20 65 76 65 |ating-sy|stem eve|
|00001af0| 6e 74 20 72 65 63 6f 72 | 64 14 48 61 6e 64 6c 69 |nt recor|d.Handli|
|00001b00| 6e 67 20 4e 75 6c 6c 20 | 45 76 65 6e 74 73 20 4c |ng Null |Events L|
|00001b10| 69 73 74 69 6e 67 20 39 | 2d 33 09 48 61 6e 64 6c |isting 9|-3.Handl|
|00001b20| 69 6e 67 20 6e 75 6c 6c | 20 65 76 65 6e 74 73 34 |ing null| events4|
|00001b30| 46 69 67 75 72 65 20 39 | 2d 32 09 41 20 56 65 6e |Figure 9|-2.A Ven|
|00001b40| 6e 20 64 69 61 67 72 61 | 6d 20 62 65 66 6f 72 65 |n diagra|m before|
|00001b50| 20 61 75 74 6f 6d 61 74 | 69 63 20 61 64 6a 75 73 | automat|ic adjus|
|00001b60| 74 69 6e 67 33 46 69 67 | 75 72 65 20 39 2d 33 09 |ting3Fig|ure 9-3.|
|00001b70| 41 20 56 65 6e 6e 20 64 | 69 61 67 72 61 6d 20 61 |A Venn d|iagram a|
|00001b80| 66 74 65 72 20 61 75 74 | 6f 6d 61 74 69 63 20 61 |fter aut|omatic a|
|00001b90| 64 6a 75 73 74 69 6e 67 | 17 51 75 69 74 74 69 6e |djusting|.Quittin|
|00001ba0| 67 20 61 6e 20 41 70 70 | 6c 69 63 61 74 69 6f 6e |g an App|lication|
|00001bb0| 25 4c 69 73 74 69 6e 67 | 20 39 2d 34 09 51 75 69 |%Listing| 9-4.Qui|
|00001bc0| 74 74 69 6e 67 20 79 6f | 75 72 20 61 70 70 6c 69 |tting yo|ur appli|
|00001bd0| 63 61 74 69 6f 6e 0f 48 | 61 6e 64 6c 69 6e 67 20 |cation.H|andling |
|00001be0| 45 72 72 6f 72 73 23 4c | 69 73 74 69 6e 67 20 39 |Errors#L|isting 9|
|00001bf0| 2d 35 09 48 61 6e 64 6c | 69 6e 67 20 73 65 72 69 |-5.Handl|ing seri|
|00001c00| 6f 75 73 20 65 72 72 6f | 72 73 22 43 68 65 63 6b |ous erro|rs"Check|
|00001c10| 69 6e 67 20 74 68 65 20 | 4f 70 65 72 61 74 69 6e |ing the |Operatin|
|00001c20| 67 20 45 6e 76 69 72 6f | 6e 6d 65 6e 74 2f 4c 69 |g Enviro|nment/Li|
|00001c30| 73 74 69 6e 67 20 39 2d | 36 09 43 68 65 63 6b 69 |sting 9-|6.Checki|
|00001c40| 6e 67 20 74 68 61 74 20 | 46 69 6e 64 46 6f 6c 64 |ng that |FindFold|
|00001c50| 65 72 20 69 73 20 70 72 | 65 73 65 6e 74 33 4c 69 |er is pr|esent3Li|
|00001c60| 73 74 69 6e 67 20 39 2d | 37 09 44 65 74 65 72 6d |sting 9-|7.Determ|
|00001c70| 69 6e 69 6e 67 20 77 68 | 65 74 68 65 72 20 61 20 |ining wh|ether a |
|00001c80| 74 72 61 70 20 69 73 20 | 61 76 61 69 6c 61 62 6c |trap is |availabl|
|00001c90| 65 47 4c 69 73 74 69 6e | 67 20 39 2d 38 09 43 68 |eGListin|g 9-8.Ch|
|00001ca0| 65 63 6b 69 6e 67 20 66 | 6f 72 20 74 68 65 20 61 |ecking f|or the a|
|00001cb0| 76 61 69 6c 61 62 69 6c | 69 74 79 20 6f 66 20 74 |vailabil|ity of t|
|00001cc0| 68 65 20 57 61 69 74 4e | 65 78 74 45 76 65 6e 74 |he WaitN|extEvent|
|00001cd0| 20 66 75 6e 63 74 69 6f | 6e 0d 47 6f 69 6e 67 20 | functio|n.Going |
|00001ce0| 46 75 72 74 68 65 72 1d | 49 6d 70 6c 65 6d 65 6e |Further.|Implemen|
|00001cf0| 74 69 6e 67 20 46 75 72 | 74 68 65 72 20 46 65 61 |ting Fur|ther Fea|
|00001d00| 74 75 72 65 73 19 4d 61 | 69 6e 74 61 69 6e 69 6e |tures.Ma|intainin|
|00001d10| 67 20 43 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 23 |g Compat|ibility#|
|00001d20| 4d 61 6b 69 6e 67 20 59 | 6f 75 72 20 41 70 70 6c |Making Y|our Appl|
|00001d30| 69 63 61 74 69 6f 6e 20 | 4c 6f 63 61 6c 69 7a 61 |ication |Localiza|
|00001d40| 62 6c 65 18 55 73 69 6e | 67 20 44 65 76 65 6c 6f |ble.Usin|g Develo|
|00001d50| 70 65 72 20 53 65 72 76 | 69 63 65 73 16 54 65 63 |per Serv|ices.Tec|
|00001d60| 68 6e 69 63 61 6c 20 50 | 75 62 6c 69 63 61 74 69 |hnical P|ublicati|
|00001d70| 6f 6e 73 08 54 72 61 69 | 6e 69 6e 67 11 54 65 63 |ons.Trai|ning.Tec|
|00001d80| 68 6e 69 63 61 6c 20 53 | 75 70 70 6f 72 74 0a 41 |hnical S|upport.A|
|00001d90| 70 70 65 6e 64 69 78 65 | 73 1f 43 6f 6e 73 74 61 |ppendixe|s.Consta|
|00001da0| 6e 74 73 2c 20 54 79 70 | 65 73 2c 20 61 6e 64 20 |nts, Typ|es, and |
|00001db0| 56 61 72 69 61 62 6c 65 | 73 10 55 74 69 6c 69 74 |Variable|s.Utilit|
|00001dc0| 79 20 52 6f 75 74 69 6e | 65 73 0b 44 69 61 6c 6f |y Routin|es.Dialo|
|00001dd0| 67 20 43 6f 64 65 0d 52 | 65 73 6f 75 72 63 65 20 |g Code.R|esource |
|00001de0| 43 6f 64 65 13 55 73 65 | 72 20 49 6e 74 65 72 66 |Code.Use|r Interf|
|00001df0| 61 63 65 20 43 6f 64 65 | 08 47 6c 6f 73 73 61 72 |ace Code|.Glossar|
|00001e00| 79 05 49 6e 64 65 78 | |y.Index | |
+--------+-------------------------+-------------------------+--------+--------+